home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 2 / Atari Mega Archive CD - Volume 2.iso / minix / up1510b.tgz / up1510b / include / regexp.h < prev    next >
C/C++ Source or Header  |  1990-07-23  |  804b  |  29 lines

  1. /* The <regexp.h> header is used by the (V8-compatible) regexp(3) routines. */
  2.  
  3. #ifndef _REGEXP_H
  4. #define _REGEXP_H
  5.  
  6. #define CHARBITS 0377
  7. #define NSUBEXP  10
  8. typedef struct regexp {
  9.     char *startp[NSUBEXP];
  10.     char *endp[NSUBEXP];
  11.     char regstart;        /* Internal use only. */
  12.     char reganch;        /* Internal use only. */
  13.     char *regmust;        /* Internal use only. */
  14.     int regmlen;        /* Internal use only. */
  15.     char program[1];    /* Unwarranted chumminess with compiler. */
  16. } regexp;
  17.  
  18. /* Function Prototypes. */
  19. #ifndef _ANSI_H
  20. #include <ansi.h>
  21. #endif
  22.  
  23. _PROTOTYPE( regexp *regcomp, (char *_exp)                );
  24. _PROTOTYPE( int regexec, (regexp *_prog, char *_string, int _bolflag)    );
  25. _PROTOTYPE( void regsub, (regexp *_prog, char *_source, char *_dest)    );
  26. _PROTOTYPE( void regerror, (char *_message)                 );
  27.  
  28. #endif /* _REGEXP_H */
  29.